package com.neusoft.neumooc.dao;

import java.util.List;
import com.neusoft.core.common.exception.DAOException;
import com.neusoft.neumooc.vo.BackContentVO;

public interface BackContentDAO {
    
    /**
     * 获取栏目下所有内容
     */
    List<BackContentVO> getContentsByColumnId(String columnId) throws DAOException;
    
    /**
     * 根据ID获取内容
     */
    BackContentVO getContentById(String contentId) throws DAOException;
    
    /**
     * 添加内容
     */
    boolean addContent(BackContentVO content) throws DAOException;
    
    /**
     * 更新内容
     */
    boolean updateContent(BackContentVO content) throws DAOException;
    
    /**
     * 删除内容
     */
    boolean deleteContent(String contentId) throws DAOException;
    
    /**
     * 更新内容状态
     */
    boolean updateContentStatus(String contentId, String status) throws DAOException;
    
    /**
     * 搜索内容
     * @param searchParams 搜索参数
     * @return 符合条件的内容列表
     * @throws DAOException
     */
    List<BackContentVO> searchContents(BackContentVO searchParams) throws DAOException;
} 